﻿using System;
using System.Collections.Generic;

namespace Rj.PersonnelVerification.Server.DataBaseContext.Entities
{
    public partial class XxlJobLog
    {
        public long Id { get; set; }
        /// <summary>
        /// 执行器主键ID
        /// </summary>
        public int JobGroup { get; set; }
        /// <summary>
        /// 任务，主键ID
        /// </summary>
        public int JobId { get; set; }
        /// <summary>
        /// 执行器地址，本次执行的地址
        /// </summary>
        public string? ExecutorAddress { get; set; }
        /// <summary>
        /// 执行器任务handler
        /// </summary>
        public string? ExecutorHandler { get; set; }
        /// <summary>
        /// 执行器任务参数
        /// </summary>
        public string? ExecutorParam { get; set; }
        /// <summary>
        /// 执行器任务分片参数，格式如 1/2
        /// </summary>
        public string? ExecutorShardingParam { get; set; }
        /// <summary>
        /// 失败重试次数
        /// </summary>
        public int ExecutorFailRetryCount { get; set; }
        /// <summary>
        /// 调度-时间
        /// </summary>
        public DateTime? TriggerTime { get; set; }
        /// <summary>
        /// 调度-结果
        /// </summary>
        public int TriggerCode { get; set; }
        /// <summary>
        /// 调度-日志
        /// </summary>
        public string? TriggerMsg { get; set; }
        /// <summary>
        /// 执行-时间
        /// </summary>
        public DateTime? HandleTime { get; set; }
        /// <summary>
        /// 执行-状态
        /// </summary>
        public int HandleCode { get; set; }
        /// <summary>
        /// 执行-日志
        /// </summary>
        public string? HandleMsg { get; set; }
        /// <summary>
        /// 告警状态：0-默认、1-无需告警、2-告警成功、3-告警失败
        /// </summary>
        public byte AlarmStatus { get; set; }
    }
}
